package com.keyware.kd.vo.menu;

import java.util.List;

import com.keyware.kd.repository.entity.Menu;

public class menuVo extends Menu{
	    
	private static final long serialVersionUID = -4804232272476824112L;

	private String name;
	
	private String url;
	
	private List<Menu> childMenuList;
	
	private String userId;

	private boolean seventeenSuo;
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public List<Menu> getChildMenuList() {
		return childMenuList;
	}

	public void setChildMenuList(List<Menu> childMenuList) {
		this.childMenuList = childMenuList;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSeventeenSuo() {
		return seventeenSuo;
	}

	public void setSeventeenSuo(boolean seventeenSuo) {
		this.seventeenSuo = seventeenSuo;
	}

	@Override
	public boolean equals(Object obj) {
		menuVo m = (menuVo)obj;
		return super.menuId.equals(m.getMenuId()) && name.equals(m.getName());
	}

	@Override
	public int hashCode() {
		String in = menuId + name;
		return in.hashCode();
	}
}
